<?php

class Login extends CI_Controller {
    
    function Login() {
        parent::__construct();
    }
    
    public function index() {
        $this->load->library('session');
        
        if (!$this->session->userdata('logged')) {
            redirect('/session/','refresh');
        } else {
            redirect('/router/view_users','refresh');   
        }
        exit();
    }
    
}

?>